Disable/enable screen updates around process_all_updates to speed up rendering
authorRichard Hult <richard@imendio.com>
Thu, 5 Feb 2009 07:23:58 +0000 (08:23 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:16:29 +0000 (10:16 +0200)
gdk/quartz/gdkwindow-quartz.c

index 5c01f7cf4586376badb89fc73af605c94decf075..0586460a1f22d36692e47ea4443996714585dd5f 100644 (file)
@@ -406,6 +406,8 @@ void
 _gdk_windowing_before_process_all_updates (void)
 {
   in_process_all_updates = TRUE;
+
+  NSDisableScreenUpdates ();
 }
 
 void
@@ -432,6 +434,8 @@ _gdk_windowing_after_process_all_updates (void)
   g_slist_free (old_update_nswindows);
 
   in_process_all_updates = FALSE;
+
+  NSEnableScreenUpdates ();
 }
 
 static void